package edu.scau.finance.order.mapper;

import edu.scau.tool.annotation.RequestLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderReportMapper {
    @RequestLog
    List<Map<String, Object>> getDailyOrderAmount(@Param("startTime")Date startTime, @Param("endTime")Date endTime,@Param("period") String period);
    @RequestLog
    List<Map<String, Object>> getOrderCountGroupedByStatus(@Param("startTime")Date startTime, @Param("endTime")Date endTime);
    @RequestLog
    List<Map<String, Object>> calculateAmountGroupByCategory(@Param("startTime")Date startTime, @Param("endTime")Date endTime,@Param("period") String period);
}
